home *** CD-ROM | disk | FTP | other *** search
- // GETINFO SCRIPTING
- // www.videoteka.com.pl/ info & picture, by Goster
-
- (***********************************************
- * Movie information & picture importation *
- * script for http://www.videoteka.com.pl/ *
- * (c) 2004 Goster *
- * *
- * partialy based on Film.WP (PL) by îwistak *
- * *
- * *
- * For use with Ant Movie Catalog 3.4.3 *
- * www.antp.be/software/moviecatalog *
- * *
- * This program is free software; you can *
- * redistribute it and/or modify it under the *
- * terms of the GNU General Public License as *
- * published by the Free Software Foundation; *
- * either version 2 of the License, or (at your *
- * option) any later version. *
- ***********************************************)
-
- program Casablanca;
- var
- MovieName, temp: string;
- Link: string;
- jakitytul: boolean;
- PHPSESSID: string;
- pozycja, pozycja2: integer;
- PHPsessidTablica: Array Of String;
- cover, nocover: boolean;
-
- function FindLine(Pattern: string; List: TStringList; StartAt: Integer): Integer;
- var
- i: Integer;
- begin
- result := -1;
- if StartAt < 0 then
- StartAt := 0;
- for i := StartAt to List.Count-1 do
- if Pos(Pattern, List.GetString(i)) <> 0 then
- begin
- result := i;
- Break;
- end;
- end;
-
- procedure DecodeHTML(var Value: String);
- var
- FullValue, CharCode: String;
- Counter: Integer;
- begin
- if Value <> '' then begin
- FullValue := '';
- Counter := 1;
- repeat
- if StrGet(Value, Counter) <> '&' then
- begin
- CharCode := copy(Value, Counter, 1);
- case CharCode of
- '▒': CharCode := '╣';
- '╢': CharCode := '£';
- 'í': CharCode := 'Ñ';
- '╝': CharCode := 'ƒ';
- 'ª': CharCode := 'î';
- '¼': CharCode := 'Å';
- end;
- FullValue := FullValue + CharCode;
- Counter := Counter + 1;
- end
- else
- begin
- CharCode := copy(Value, Counter, 7);
- case CharCode of
- 'ą': FullValue := FullValue + '╣';
- 'ć': FullValue := FullValue + 'µ';
- 'ę': FullValue := FullValue + 'Ω';
- 'ł': FullValue := FullValue + '│';
- 'ń': FullValue := FullValue + '±';
- 'ó': FullValue := FullValue + '≤';
- 'ś': FullValue := FullValue + '£';
- 'ź': FullValue := FullValue + 'ƒ';
- 'ż': FullValue := FullValue + '┐';
- 'Ą': FullValue := FullValue + 'Ñ';
- 'Ć': FullValue := FullValue + '╞';
- 'Ę': FullValue := FullValue + '╩';
- 'Ł': FullValue := FullValue + 'ú';
- 'Ń': FullValue := FullValue + '╤';
- 'Ó': FullValue := FullValue + '╙';
- 'Ś': FullValue := FullValue + 'î';
- 'Ź': FullValue := FullValue + 'Å';
- 'Ż': FullValue := FullValue + '»';
- 'Š': FullValue := FullValue + ' ';
- 'š': FullValue := FullValue + 'í';
- 'Ţ': FullValue := FullValue + 'í';
- 'ţ': FullValue := FullValue + 'ú';
- 'Ť': FullValue := FullValue + 'ñ';
- 'ť': FullValue := FullValue + 'Ñ';
- 'Ŧ': FullValue := FullValue + 'î';
- 'ŧ': FullValue := FullValue + 'º';
- 'Ũ': FullValue := FullValue + '¿';
- 'ũ': FullValue := FullValue + '⌐';
- 'Ű': FullValue := FullValue + '¬';
- 'ű': FullValue := FullValue + '½';
- 'Ų': FullValue := FullValue + '¼';
- 'ų': FullValue := FullValue + '¡';
- 'Ŵ': FullValue := FullValue + '«';
- 'ŵ': FullValue := FullValue + '»';
- 'Ŷ': FullValue := FullValue + '░';
- 'ŷ': FullValue := FullValue + '▒';
- 'Ÿ': FullValue := FullValue + '▓';
- 'ƀ': FullValue := FullValue + '┤';
- 'Ɓ': FullValue := FullValue + '╡';
- 'Ƃ': FullValue := FullValue + '╢';
- 'ƃ': FullValue := FullValue + '╖';
- 'Ƅ': FullValue := FullValue + '╕';
- 'ƅ': FullValue := FullValue + '╣';
- 'Ɔ': FullValue := FullValue + '║';
- 'Ƈ': FullValue := FullValue + '╗';
- 'ƈ': FullValue := FullValue + '╝';
- 'Ɖ': FullValue := FullValue + '╜';
- 'Ɛ': FullValue := FullValue + '╛';
- 'Ƒ': FullValue := FullValue + '┐';
- 'ƒ': FullValue := FullValue + '└';
- 'Ɠ': FullValue := FullValue + '┴';
- 'Ɣ': FullValue := FullValue + '┬';
- 'ƕ': FullValue := FullValue + '├';
- 'Ɩ': FullValue := FullValue + '─';
- 'Ɨ': FullValue := FullValue + '┼';
- 'Ƙ': FullValue := FullValue + '╞';
- 'ƙ': FullValue := FullValue + '╟';
- 'Ȁ': FullValue := FullValue + '╚';
- 'ȁ': FullValue := FullValue + '╔';
- 'Ȃ': FullValue := FullValue + '╩';
- 'ȃ': FullValue := FullValue + '╦';
- 'Ȅ': FullValue := FullValue + '╠';
- 'ȅ': FullValue := FullValue + '═';
- 'Ȇ': FullValue := FullValue + '╬';
- 'ȇ': FullValue := FullValue + '╧';
- 'Ȉ': FullValue := FullValue + '╨';
- 'ȉ': FullValue := FullValue + '╤';
- 'Ȑ': FullValue := FullValue + '╥';
- 'ȑ': FullValue := FullValue + '╙';
- 'Ȓ': FullValue := FullValue + '╘';
- 'ȓ': FullValue := FullValue + '╒';
- 'Ȕ': FullValue := FullValue + '╓';
- 'ȕ': FullValue := FullValue + '╫';
- 'Ȗ': FullValue := FullValue + '╪';
- 'ȗ': FullValue := FullValue + '┘';
- 'Ș': FullValue := FullValue + '┌';
- 'ș': FullValue := FullValue + '█';
- 'Ƞ': FullValue := FullValue + '▄';
- 'ȡ': FullValue := FullValue + '▌';
- 'Ȣ': FullValue := FullValue + '▐';
- 'ȣ': FullValue := FullValue + '▀';
- 'Ȥ': FullValue := FullValue + 'α';
- 'ȥ': FullValue := FullValue + 'ß';
- 'Ȧ': FullValue := FullValue + 'Γ';
- 'ȧ': FullValue := FullValue + 'π';
- 'Ȩ': FullValue := FullValue + 'Σ';
- 'ȩ': FullValue := FullValue + 'σ';
- 'Ȱ': FullValue := FullValue + 'µ';
- 'ȱ': FullValue := FullValue + 'τ';
- 'Ȳ': FullValue := FullValue + 'Φ';
- 'ȳ': FullValue := FullValue + 'Θ';
- 'ȴ': FullValue := FullValue + 'Ω';
- 'ȵ': FullValue := FullValue + 'δ';
- 'ȶ': FullValue := FullValue + '∞';
- 'ȷ': FullValue := FullValue + 'φ';
- 'ȸ': FullValue := FullValue + 'ε';
- 'ȹ': FullValue := FullValue + '∩';
- 'ɀ': FullValue := FullValue + '≡';
- 'Ɂ': FullValue := FullValue + '±';
- 'ɂ': FullValue := FullValue + '≥';
- 'Ƀ': FullValue := FullValue + '≤';
- 'Ʉ': FullValue := FullValue + '⌠';
- 'Ʌ': FullValue := FullValue + '⌡';
- 'Ɇ': FullValue := FullValue + '÷';
- 'ɇ': FullValue := FullValue + '≈';
- 'Ɉ': FullValue := FullValue + '°';
- 'ɉ': FullValue := FullValue + '∙';
- 'ɐ': FullValue := FullValue + '·';
- 'ɑ': FullValue := FullValue + '√';
- 'ɒ': FullValue := FullValue + 'ⁿ';
- 'ɓ': FullValue := FullValue + '²';
- 'ɔ': FullValue := FullValue + '■';
- 'ɕ': FullValue := FullValue + ' ';
- '%DF;': FullValue := FullValue + '▀';
- '4': FullValue := FullValue + '"';
- '–': FullValue := FullValue + '-';
- '‘': FullValue := FullValue + '"';
- '’': FullValue := FullValue + '"';
- '“': FullValue := FullValue + '"';
- '”': FullValue := FullValue + '"';
- '„': FullValue := FullValue + '"';
- else
- FullValue := FullValue + CharCode;
- end;
- Counter := Counter + 7;
- end;
- until Counter > Length(Value);
- HTMLDecode(FullValue);
- Value := FullValue;
- end
- end;
-
- procedure AnalyzePage(PostQuery: string);
- var
- Page: TStringList;
- pozycja, startPos, endPos, ilosc, licznik: integer;
- linia, adres, tytul: string;
-
- begin
- licznik := 0;
- Page := TStringList.Create;
- PostPage('http://www.videoteka.com.pl/moduly/wyszukiwarka.php3','PHPSESSID=' + PHPSESSID +'&str=19&tytul=qqqqqq&tytul_eng=&gatunek=&dystrybutor=&rezyser=&aktor=&rok=&polecamy='); //zainicjalizowanie PHPSESSID
- PostPage('http://www.videoteka.com.pl/moduly/wyszukiwarka.php3',PostQuery); //zlecenie wyszukania
- Page.Text := GetPage('http://www.videoteka.com.pl/index.php3?PHPSESSID=' + PHPSESSID + '&str=19&poz=1'); //Odwo│anie do wynik≤w
- pozycja := FindLine('<b>Ilo╢µ: ', Page, 0);
- if (pozycja >-1) then
- begin
- linia := Page.GetString(pozycja);
- startPos := pos('<b>Ilo╢µ: ', Linia);
- delete(linia, 1, startPos + 9);
- endPos := pos('</b>', Linia);
- adres := copy(linia, 1, endPos - 1);
- ilosc := StrToInt(adres, 0);
- if ilosc > 0 then
- begin
- PickTreeClear;
- while ((ilosc > 0) and (pos('<a href="', Linia) > 0)) do
- begin
- startPos := pos('<a href="', Linia);
- delete(linia, 1, startPos + 8);
- endPos := pos('" title=', Linia);
- adres := copy(linia, 1, endPos - 1);
- adres := 'http://www.videoteka.com.pl' + adres + '&PHPSESSID=' + PHPSESSID;
- startPos := pos('"Szczeg≤│owy opis filmu">', Linia);
- delete(linia, 1, startPos + 24);
- endPos := pos('</a>', Linia);
- tytul := copy(linia, 1, endPos - 1);
- DecodeHTML(tytul);
- PickTreeAdd(tytul, adres);
- ilosc := ilosc - 1;
- licznik := licznik + 1;
- if (((licznik mod 20) = 0) and (ilosc > 0)) then
- begin
- Page.Text := GetPage('http://www.videoteka.com.pl//index.php3?str=19&poz=1&zakres=' + IntToStr(licznik) + '&nas=0&PHPSESSID=' + PHPSESSID);
- pozycja := FindLine('<b>Ilo╢µ: ', Page, 0);
- linia := Page.GetString(pozycja);
- startPos := pos('<b>Ilo╢µ: ', Linia);
- delete(linia, 1, startPos + 9);
- end;
- end;
- end
- else
- begin
- DecodeHTML(MovieName);
- ShowMessage('Nie znaleziono ┐adnego filmu spe│niaj╣cego kryteria: "'+MovieName+'".');
- end;
- end
- else
- begin
- DecodeHTML(MovieName);
- ShowMessage('Nie znaleziono ┐adnego filmu spe│niaj╣cego kryteria: "'+MovieName+'".');
- end;
- if PickTreeExec(adres) then
- begin
- Page.Text := GetPage(adres);
- AnalyzeMoviePage(page);
- end;
- Page.Free;
- end;
-
- procedure AnalyzeMoviePage(Page: TStringList);
- var
- Linia, tytul, line, Obsada, OrgLine: string;
- LineNr: Integer;
- StartPos, EndPos, i: Integer;
- nie: boolean;
- begin
-
- pozycja := FindLine('Nowe wyszukiwanie', Page, 0);
- linia := Page.GetString(pozycja);
- startPos := pos('Nowe wyszukiwanie', Linia);
- delete(linia, 1, startPos + 16);
-
- //Foto
- if (nocover = false) then
- begin
- startPos := pos('onclick="widok', Linia);
- delete(linia, 1, startPos + 15);
- endPos := pos(')"', Linia);
- tytul := copy(linia, 1, endPos - 2);
- tytul := 'http://www.videoteka.com.pl/' + tytul;
- tytul := URLEncode(tytul);
- GetPicture(tytul, False);
- end;
-
- if (cover = false) then
- begin
-
- // Tytu│ polski
- startPos := pos('Tytu│:', Linia);
- if startPos >0 then
- begin
- delete(linia, 1, startPos + 5);
- startPos := pos('<b>', Linia);
- delete(linia, 1, startPos + 2);
- endPos := pos('</b>', Linia);
- tytul := copy(linia, 1, endPos - 1);
- DecodeHTML(tytul);
- setField(fieldTranslatedTitle, tytul);
- end
-
- // Tytu│ oryginalny
- startPos := pos('Tytu│ oryginalny:</b>', Linia);
- if startPos >0 then
- begin
- delete(linia, 1, startPos + 20);
- startPos := pos('The ', linia);
- if startPos > 0 then delete(linia, 1, startPos + 3);
- endPos := pos('<br>', Linia);
- tytul := copy(linia, 1, endPos - 1);
- if copy(tytul, 1, 1) = ' ' then delete(tytul, 1, 1);
- end
- DecodeHTML(tytul);
- setField(fieldOriginalTitle, tytul);
-
- // Gatunek
- startPos := pos('Gatunek:</b>', Linia);
- if startPos >0 then
- begin
- delete(linia, 1, startPos + 11);
- endPos := pos('<br>', Linia);
- tytul := copy(linia, 1, endPos - 1);
- if copy(tytul, 1, 1) = ' ' then delete(tytul, 1, 1);
- DecodeHTML(tytul);
- tytul := AnsiUpFirstLetter(tytul);
- setField(fieldCategory, tytul);
- end;
-
- //Re┐yser
- startPos := pos('Re┐yser:</b> <a href=', Linia);
- if startPos >0 then
- begin
- delete(linia, 1, startPos + 20);
- startPos := pos('">', Linia);
- delete(linia, 1, startPos + 1);
- startPos := pos('">', Linia);
- delete(linia, 1, startPos + 1);
- endPos := pos('</', Linia);
- tytul := copy(linia, 1, endPos - 1);
- if copy(tytul, 1, 1) = ' ' then delete(tytul, 1, 1);
- DecodeHTML(tytul);
- setField(fieldDirector, tytul);
- end;
-
- //Obsada
- tytul := '';
- startPos := pos('Obsada:</b>', Linia);
- if startPos >0 then
- begin
- delete(linia, 1, startPos + 20);
- while (pos('<a href=', Linia) < pos('Czas trwania:', Linia)) do
- begin
- startPos := pos('">', Linia);
- delete(linia, 1, startPos + 1);
- startPos := pos('">', Linia);
- delete(linia, 1, startPos + 1);
- endPos := pos('</', Linia);
- tytul := tytul + ', ' + copy(linia, 1, endPos - 1);
- end;
- if copy(tytul, 1, 1) = ',' then delete(tytul, 1, 1);
- if copy(tytul, 1, 1) = ' ' then delete(tytul, 1, 1);
- DecodeHTML(tytul);
- setField(fieldActors, tytul);
- end;
-
- // Czas trwania
- startPos := pos('Czas trwania:</b>', Linia);
- if startPos >0 then
- begin
- delete(linia, 1, startPos + 16);
- endPos := pos(' min.', Linia);
- tytul := copy(linia, 1, endPos - 1);
- if copy(tytul, 1, 1) = ' ' then delete(tytul, 1, 1);
- DecodeHTML(tytul);
- setField(fieldLength, tytul);
- end;
-
- // Rok produkcji
- startPos := pos('Rok produkcji:</b>', Linia);
- if startPos >0 then
- begin
- delete(linia, 1, startPos + 17);
- endPos := pos('<br>', Linia);
- tytul := copy(linia, 1, endPos - 1);
- if copy(tytul, 1, 1) = ' ' then delete(tytul, 1, 1);
- DecodeHTML(tytul);
- SetField(fieldYear, tytul);
- end;
-
- // Producent - tu jako dystrybucja
- startPos := pos('Dystrybucja:</b> <a href=', Linia);
- if startPos >0 then
- begin
- delete(linia, 1, startPos + 24);
- startPos := pos('">', Linia);
- delete(linia, 1, startPos + 1);
- startPos := pos('">', Linia);
- delete(linia, 1, startPos + 1);
- endPos := pos('</', Linia);
- tytul := copy(linia, 1, endPos - 1);
- if copy(tytul, 1, 1) = ' ' then delete(tytul, 1, 1);
- DecodeHTML(tytul);
- setField(fieldProducer, tytul);
- end;
-
- //URL
- startPos := pos('Strona filmu:</b> <a href="', Linia);
- if startPos >0 then
- begin
- if startPos > 0 then
- begin
- delete(linia, 1, startPos + 26);
- endPos := pos('" ', linia);
- tytul := copy(linia, 1, endPos - 1);
- if copy(tytul, 1, 1) = ' ' then delete(tytul, 1, 1);
- DecodeHTML(tytul);
- setField(fieldURL, tytul);
- end;
- end;
-
- // Opis filmu i recenzja
- pozycja := FindLine('>Opis:<', Page, 0);
- tytul := '';
- repeat
- begin
- linia := Page.GetString(pozycja);
- HTMLRemoveTags(linia);
- DecodeHTML(linia);
- while ((copy(linia, 1, 1) = ' ') or (copy(linia, 1, 1) = ' ') or (copy(linia, 1, 1) = 'á')) do delete(linia, 1, 1);
- if (linia = '') then pozycja := pozycja +1;
- end;
- until (linia <> '');
- pozycja2 := FindLine('Zobacz recenzjΩ', Page, 0);
- if pozycja2 = -1 then
- pozycja2 := FindLine('[Dodaj komentarz]', Page, 0);
- repeat
- begin
- linia := Page.GetString(pozycja);
- HTMLRemoveTags(linia);
- DecodeHTML(linia);
- endPos := pos('Opis:', linia);
- if endPos <> 0 then delete(linia, 1, endPos + 4);
- while ((copy(linia, 1, 1) = ' ') or (copy(linia, 1, 1) = ' ') or (copy(linia, 1, 1) = 'á')) do delete(linia, 1, 1);
- while ((copy(linia, length(linia), 1) = ' ') or (copy(linia, length(linia), 1) = ' ') or (copy(linia, length(linia), 1) = 'á')) do delete(linia, length(linia), 1);
- if tytul = '' then
- tytul := tytul + linia
- else
- tytul := tytul + #13#10 + linia;
- pozycja := pozycja + 1;
- end;
- until (pozycja >= pozycja2);
- tytul := StringReplace(tytul, 'Zobacz stronΩ filmu', '');
- tytul := StringReplace(tytul, 'Czas siΩ zalogawaµ...', '');
- while ((copy(tytul, 1, 1) = ' ') or (copy(tytul, 1, 1) = ' ')) do delete(tytul, 1, 1);
- while ((copy(tytul, length(tytul), 1) = ' ') or (copy(tytul, length(tytul), 1) = ' ')) do delete(tytul, length(tytul), 1);
- endPos := pos('Zobacz', linia);
- startPos := pos('stronΩ filmu', linia);
- if ((startPos > 0) and (endPos > 0)) then
- begin
- endPos := pos('" target=', linia);
- startPos := pos('<a href="', linia);
- link := copy(linia, startPos + 9, endPos - startPos - 9);
- setField(fieldURL, link);
- end
- else
- begin
- linia := Page.GetString(pozycja);
- endPos := pos('Zobacz', linia);
- startPos := pos('stronΩ filmu', linia);
- if ((startPos > 0) and (endPos > 0)) then
- begin
- endPos := pos('" target=', linia);
- startPos := pos('<a href="', linia);
- link := copy(linia, startPos + 9, endPos - startPos - 9);
- setField(fieldURL, link);
- end
- end;
- setField(fieldDescription, tytul);
-
- end;
-
- DisplayResults;
- end;
-
- begin
- Setarraylength(PHPsessidTablica,20);
- PHPsessidTablica[0] := 'ae1f7cfed55558d90e6c60596e5e5069';
- PHPsessidTablica[1] := 'ae1f7cfed55558d90e6c60596e5e5050';
- PHPsessidTablica[2] := 'ae1f7cfed55558d90e6c60596e5e5051';
- PHPsessidTablica[3] := 'ae1f7cfed55558d90e6c60596e5e5052';
- PHPsessidTablica[4] := 'ae1f7cfed55558d90e6c60596e5e5053';
- PHPsessidTablica[5] := 'ae1f7cfed55558d90e6c60596e5e5054';
- PHPsessidTablica[6] := 'ae1f7cfed55558d90e6c60596e5e5055';
- PHPsessidTablica[7] := 'ae1f7cfed55558d90e6c60596e5e5056';
- PHPsessidTablica[8] := 'ae1f7cfed55558d90e6c60596e5e5057';
- PHPsessidTablica[9] := 'ae1f7cfed55558d90e6c60596e5e5058';
- PHPsessidTablica[10] := 'ae1f7cfed55558d90e6c60596e5e5059';
- PHPsessidTablica[11] := 'ae1f7cfed55558d90e6c60596e5e5060';
- PHPsessidTablica[12] := 'ae1f7cfed55558d90e6c60596e5e5061';
- PHPsessidTablica[13] := 'ae1f7cfed55558d90e6c60596e5e5062';
- PHPsessidTablica[14] := 'ae1f7cfed55558d90e6c60596e5e5063';
- PHPsessidTablica[15] := 'ae1f7cfed55558d90e6c60596e5e5064';
- PHPsessidTablica[16] := 'ae1f7cfed55558d90e6c60596e5e5065';
- PHPsessidTablica[17] := 'ae1f7cfed55558d90e6c60596e5e5066';
- PHPsessidTablica[18] := 'ae1f7cfed55558d90e6c60596e5e5067';
- PHPsessidTablica[19] := 'ae1f7cfed55558d90e6c60596e5e5068';
- if CheckVersion(3,4,3) then
- begin
- MovieName := GetField(fieldTranslatedTitle);
- jakitytul:=true;
- if MovieName = '' then
- begin
- MovieName := GetField(fieldOriginalTitle);
- if MovieName <> '' then jakitytul:=false;
- end
- if Input('Casablanca Import', 'Podaj tytu│ filmu:', MovieName) then
- begin
- // Zamiana na ISO-8859-2
- MovieName:=StringReplace(MovieName, '╣', chr(177));
- MovieName:=StringReplace(MovieName, 'µ', chr(230));
- MovieName:=StringReplace(MovieName, 'Ω', chr(234));
- MovieName:=StringReplace(MovieName, '│', chr(179));
- MovieName:=StringReplace(MovieName, '±', chr(241));
- MovieName:=StringReplace(MovieName, '≤', chr(243));
- MovieName:=StringReplace(MovieName, '£', chr(182));
- MovieName:=StringReplace(MovieName, 'ƒ', chr(188));
- MovieName:=StringReplace(MovieName, '┐', chr(191));
- MovieName:=StringReplace(MovieName, 'Ñ', chr(161));
- MovieName:=StringReplace(MovieName, '╞', chr(198));
- MovieName:=StringReplace(MovieName, '╩', chr(202));
- MovieName:=StringReplace(MovieName, 'ú', chr(163));
- MovieName:=StringReplace(MovieName, '╤', chr(209));
- MovieName:=StringReplace(MovieName, '╙', chr(211));
- MovieName:=StringReplace(MovieName, 'î', chr(166));
- MovieName:=StringReplace(MovieName, 'Å', chr(172));
- MovieName:=StringReplace(MovieName, '»', chr(175));
- pozycja := length(MovieName);
- while pozycja > 20 do pozycja := pozycja - 20;
- PHPSESSID:=PHPsessidTablica[pozycja];
- pozycja := pos('/pl/', MovieName);
- if pozycja > 0 then
- begin
- MovieName := StringReplace(MovieName, '/pl/' , '');
- jakitytul := true;
- end;
- pozycja := pos('/eng/', MovieName);
- if pozycja > 0 then
- begin
- MovieName := StringReplace(MovieName, '/eng/' , '');
- jakitytul := false;
- end;
- pozycja := pos('/cover/', MovieName);
- if pozycja > 0 then
- begin
- MovieName := StringReplace(MovieName, '/cover/' , '');
- cover := true;
- end
- else cover := false;
- pozycja := pos('/nocover/', MovieName);
- if pozycja > 0 then
- begin
- MovieName := StringReplace(MovieName, '/nocover/' , '');
- nocover := true;
- end
- else nocover := false;
- while (copy(MovieName, length(MovieName), 1) = ' ') do delete(MovieName, length(MovieName), 1);
- while (copy(MovieName, 1, 1) = ' ') do delete(MovieName, 1, 1);
- if(jakitytul=true) then
- begin
- AnalyzePage('PHPSESSID=' + PHPSESSID + '&str=19&tytul=' + MovieName + '&tytul_eng=&gatunek=&dystrybutor=&rezyser=&aktor=&rok=&polecamy=');
- end;
- if(jakitytul=false) then
- begin
- AnalyzePage('PHPSESSID=' + PHPSESSID + '&str=19&tytul=&tytul_eng=' + MovieName + '&gatunek=&dystrybutor=&rezyser=&aktor=&rok=&polecamy=');
- end;
- end;
- end
- else
- ShowMessage('Skrypt wymaga programu Ant Movie Catalog w wersji 3.4.3 lub nowszej');
- end.